package org.dromara.hrp.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.hrp.domain.HrpLead;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 线索商机视图对象 hrp_lead
 *
 * @author wenrui
 * @date 2024-03-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HrpLead.class)
public class HrpLeadVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 线索ID
     */
    @ExcelProperty(value = "线索ID")
    private Long id;

    /**
     * 线索名称
     */
    @ExcelProperty(value = "线索名称")
    private String name;

    /**
     * 客户id
     */
    @ExcelProperty(value = "客户id")
    private Long partnerId;

    /**
     * 归属销售
     */
    @ExcelProperty(value = "归属销售")
    private Long salesId;

    /**
     * 客户来源
     */
    @ExcelProperty(value = "客户来源", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hrp_lead_source")
    private String source;

    /**
     * 客户阶段
     */
    @ExcelProperty(value = "客户阶段", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hrp_lead_stage")
    private String stage;

    /**
     * 失去原因
     */
    @ExcelProperty(value = "失去原因", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hrp_lead_lost_reason")
    private String lostReason;

    /**
     * 下次跟单时间
     */
    @ExcelProperty(value = "下次跟单时间")
    private Date nextTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
